Work through steps with kids
In first machine, what could be the invariant? Difference of the two numbers. In the second, the difference gets halved. In the third, the differences get added. So the difference is not the invariant, but the invariant may have to do something with the difference
Now lets observe for few steps
(5,19) -> (6,20)(6,20) -> (3,10)(3,10) -> (4,11) ... -> (20,27)(6, 20) and (20,27) -> (6,27)What are the differences - 14, 14, 7, 7, 21 - All divisible by 7! Can we now prove the invariant?